#include "SMPPPrivacyIndicator.hpp"

using namespace smpp::pdu;

PrivacyIndicator::PrivacyIndicator(const quint8 nValue):
TLV(TLVtags::TAG_PRIVACY_INDICATOR,1),_Value(nValue){}

PrivacyIndicator::PrivacyIndicator(
const PrivacyIndicator &nPrivacyIndicator):
TLV(nPrivacyIndicator),_Value(nPrivacyIndicator.getValue()){}

bool PrivacyIndicator::operator ==(
const PrivacyIndicator &nPrivacyIndicator) const{
	return (TLV::operator == (nPrivacyIndicator) && 
			_Value == nPrivacyIndicator.getValue());
}

bool PrivacyIndicator::operator !=(
	const PrivacyIndicator &nPrivacyIndicator) const{
	return !this->operator == (nPrivacyIndicator);
}

PrivacyIndicator &PrivacyIndicator::operator = (
	const PrivacyIndicator &nPrivacyIndicator){
	if(*this == nPrivacyIndicator)
		return *this;
	TLV::operator = (nPrivacyIndicator);
	_Value = nPrivacyIndicator.getValue();
	return *this;
}

void PrivacyIndicator::setValue(const quint8 nValue){
	_Value = nValue;
}

const quint8 PrivacyIndicator::getValue() const{
	return _Value;
}
